<style lang="scss">
.progress-panel {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.progress-percent {
    width: 20%;
    font-size: 1.6rem;
    color: #CC0000;
    font-weight: 500;
    text-align: center;
}
.progress-bar-container {
    height: 15px;
    width: 80%;
    background-color: #FF9999;
    border-radius: 7px;
}

.progress-bar-inner {
    height: 100%;
    background-color: #CC0000;
    border-radius: 7px;
}
</style>
<template>
    <div class="progress-panel">
        <div class="progress-bar-container">
            <div class="progress-bar-inner" :style="{width:progress>0&&progress<10?'10%':progress+'%'}"></div>
        </div>
        <div class="progress-percent">{{progress}}%</div>
    </div>
</template>
<script>
export default {
    name: 'leilProgressBar',
    props: {
      progress: {
        type: Number,
        default: 0
      }
    },
}
</script>

